package com.xry.mapper;

import com.xry.bean.User;
import com.xry.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface UserDao {

    int add(@Param("param") User user);

    int del(@Param("id") Integer id);

    int edit(@Param("param") User user);

    List<User> all(@Param("param") User user);

    User one(@Param("id") Integer id);

    int pageCount(@Param("param") User user);

    List<User> page(@Param("page") Page page,@Param("param") User user);

    User getByName(@Param("name")String name);

    User getByEmail(@Param("email") String email);

    Map<String, Integer> countGender();

    List<String> findAllValidUimg();


}
